import numpy as np

print("linspace")
# linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0)

# start: The starting value of the sequence.
# stop: The end value of the sequence.
# num: Number of samples to generate. Default is 50.
# endpoint: If True, stop is the last sample. If False, it is not included. Default is True.
# retstep: If True, return the step size of the sequence. Default is False.

array1d = np.linspace(0,10,num=5,endpoint=True,retstep=False)

print(array1d)
# [ 0.  2.5  5.  7.5 10. ]

array1d = np.linspace(0,10,num=5,endpoint=False,retstep=False)
# [0. 2. 4. 6. 8.]
print(array1d)